import java.util.Scanner;

public class AddOverload {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入两个整数：");
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        System.out.println("整数和："+add(a,b));

        System.out.println("==============");

        System.out.println("输入三个小数：");
        double c=scanner.nextDouble();
        double d=scanner.nextDouble();
        double e=scanner.nextDouble();
        System.out.print("小数和："+add(c,d,e));

    }
    public static int add(int a,int b){
        return  a+b;

    }
    public static  double add(double c,double d,double e){
        return c+d+e;
    }
}
